<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      .box {
        width: 400px;
        height: 400px;
        padding: 20px;
        border: 2px dashed #fac;
        margin: 0 auto;
        background-image: url(./assets/chai.webp);
        background-repeat: no-repeat;
        background-position: right 10px  top ;
        /* 水平偏移 垂直偏移 */
        /* center top left right bottom */
        /* 百分比： */
        /* border padding content */
        background-origin: content-box;
      }
    </style>
  </head>
  <body>
    <div class="box"></div>
  </body>
</html>

